<?php

namespace app\model\article;

use app\model\TimeModel;
use think\model\Relation;

class Article extends TimeModel
{
    protected $table = 'sj_article';

    public function type(): Relation
    {
        return $this->belongsTo(ArticleType::class, 'type_id', 'id');
    }
}